package com.ezlcp.form.feign;

import com.ezlcp.commons.constant.BootServiceName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Elwin ZHANG
 * @description: 用户&系统Log微服务调用 <br/>
 * @date 2023/1/17 17:38
 */
@FeignClient(name = BootServiceName.USER_SERVICE)
public interface UserClient {
    /***
     * @description 根据前端的路由取对应的菜单名
     * @param path 前端的地址
     * @return java.lang.String 菜单名，如找不到则返回空
     * @author Elwin ZHANG
     * @date 2023/1/17 17:47
     */
    @RequestMapping("/ezlcp/user/menu/getMenuName")
    String getMenuName(@RequestParam(value = "path") String path);
}
